<?php
namespace pgc;
use \hc\tpl;
use \hc\session;
use \hc\js;
class Index extends tpl{
	public function __construct(){
		parent::__construct();
		session::init();
		if(isset($_SESSION['pgcinfo'])){
				$this->pgcinfo=$_SESSION['pgcinfo'];
		}else{
				$url=MODEL_URL."/Login/index.html";
			 echo 	js::to_url($url);exit;
		}
	}
	public function index(){
		 $this->display('index/index.tpl');
	}

}
?>
